'use strict';

module.exports = app => {
  const {
    INTEGER,
    TEXT,
    DATE,
  } = app.Sequelize;
  const Productinfo = app.model.define('notice', {
    id: {
      type: INTEGER,
      allowNull: false,
      primaryKey: true,
      autoIncrement: true,
      comment: '序号',
    },
    notice: {
      type: TEXT,
      comment: '公告内容',
    },
    createdDate: {
      type: DATE,
      comment: '创建类型时间',
      field: 'createdDate',
    },
  }, {
    freezeTableName: true,
    timestamps: false, // 去除createAt updateAt
  });
  return Productinfo;
};
